package com.mshine.cloud;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableApolloConfig({"mstest"})
public class TestController {
    @Value("${server.port}")
    int port;
    @Value("${mstest.port:1234}")
    private int msPort;

    @RequestMapping("hello")
    public String hello() {
        return msPort + "";
    }


}

